package com.imcoke.abchat.domain;

import com.imcoke.abchat.common.ResultEnum;
import lombok.Data;

/**
 * @Author ccoke
 * @Description 返回结果Json
 * @Date: 20:18 2017-11-27
 */
@Data
public class ResultBody {
    private String code,description; //状态码
    private Object payload; //Object
    public ResultBody(ResultEnum resultEnum, Object payload){
        this.code = resultEnum.getCode();
        this.description = resultEnum.getDescription();
        this.payload = payload;
    }
}
